package entity

import "time"

type PeriodEntity struct {
	Id          int64     `gorm:"primaryKey;column:id"`
	CreatedAt   time.Time `gorm:"column:created_at"`
	UpdatedAt   time.Time `gorm:"column:updated_at"`
	Status      int       `gorm:"column:status"`
	SettleTime  time.Time `gorm:"column:settle_time"`
	RoomId      int64     `gorm:"column:room_id"`
	RoomLevel   int       `gorm:"column:room_level"`
	RoomPeriods int64     `gorm:"column:room_periods"`
	KillerAreas string    `gorm:"column:killer_areas"`
	RoomArea    int       `gorm:"room_area"`
	PlayerCoins int64     `gorm:"player_coins"`
	RobotCoins  int64     `gorm:"robot_coins"`
	GameType    int       `gorm:"game_type"`
}

func (s *PeriodEntity) TableName() string {
	return "t_game_period"
}
